﻿using System;
using System.Web.UI;
using Acc.Lib.Providers;

namespace Acc_Web
{
    public partial class result : Page
    {
        protected String message;

        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                var reqOrder = Request["oid"];
                if (String.IsNullOrEmpty(reqOrder))
                {
                    Response.Write("<script>参数不正确</script>");
                    Response.End();
                    return;
                }
                int orderid = 0;
                Int32.TryParse(reqOrder, out orderid);
                if (orderid == 0)
                {
                    Response.Write("<script>参数不正确</script>");
                    Response.End();
                    return;
                }
                ActionLoader.SrvOrder(orderid);
                message = "购买成功";
            }
            catch (Exception ex)
            {
                message = ex.Message;
            }
        }
    }
}